const orders = [
    {
        path: 'orders-submited',
        component: (r) => require.ensure([], () => {
            r(require('../views/orders/submited.vue'));
        }, 'order')
    },
    {
        path: 'orders-unsubmited',
        component: (r) => require.ensure([], () => {
            r(require('../views/orders/unSubmited.vue'));
        }, 'order')
    }
];
export const routers = [
    {path: '/',redirect:'/login'},
    {path: '/login',component:require('../views/login.vue')},
    {
        path: '/admin',
        component: (r) => require.ensure([], () => {
            r(require('../views/adminLayout.vue'));
        }, 'order'),
        redirect: '/admin/dashboard',
        children: [
            {
                path: 'dashboard',
                component: (r) => require.ensure([], () => {
                    r(require('../views/dashboard.vue'));
                }, 'order')
            },
        ].concat(orders),
    },
    {
        path: '*',
        component: require('../views/404.vue')
    }
];
